<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>延迟显示指令</title>
    <script src="../../../../js/vue.global.js"></script>
    <style>
        <!--
        属性选择器
        -->
        [v-cloak] {
            display: none;
        }
    </style>
</head>
<body>
<div id="app" v-cloak>
    <h1>{{ message }}</h1>
</div>

<script>

    setTimeout(function () {
        const app = Vue.createApp({
            data() {
                return {
                    message: "Hello, World!",
                }
            }
        })

        app.mount("#app")
    }, 5000)

</script>
</body>
</html>